package vip.specimen.system.common.handler;

import lombok.Getter;
import lombok.Setter;
import vip.specimen.system.common.enums.ResultCode;

/**
 * *@Author: 余浪人
 * *@Date：2021/3/11 14:44
 * *@Email:yulangren520@Gmail.com
 * *@QQ:1368419640
 **/
@Getter
@Setter
public class SystemExceptionHandler extends RuntimeException {
    private long status;
    private String message;

    public SystemExceptionHandler(ResultCode resultCode) {
        super(resultCode.getMessage());
        this.message=resultCode.getMessage();
        this.status = resultCode.getStatus();
    }
}
